﻿using System.Web.WebPages;

namespace Eksponent.RazorRocks
{
    public abstract class TemplateAction<TItem>
    {

        protected TemplateAction() { }


        public abstract TemplateHelperResult Render(TItem item, TemplateRenderContext<TItem> context);


        public static implicit operator TemplateAction<TItem>(string name)
        {
            return new RazorTemplateAction<TItem>(name);
        } 
        
               
    }

    
}